
public class Demo13 {
	public static void main(String[] args) {
//		Thread t = new Thread() {
//			public void run() {
//				System.out.println(Thread.currentThread().getName());
//			};
//		};
//		t.start();
//		
		
		
		Thread t = new Thread(new Runnable() {
			@Override
			public void run() {
				System.out.println(Thread.currentThread().getClass());
				Thread.currentThread().setName("thread...");
				System.out.println(Thread.currentThread().getClass());
			}
				 
		});
		t.start();
		
		
		System.out.println(Thread.currentThread().getName());
		
		
	}

}
